package com.cn.demo.mapper;

import com.cn.demo.entity.Achievement;
import com.cn.demo.entity.Evaluate;
import com.cn.demo.entity.EvaluateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface EvaluateMapper {
    long countByExample(EvaluateExample example);

    int deleteByExample(EvaluateExample example);

    int deleteByPrimaryKey(String curriculumTypeId);

    int insert(Evaluate record);

    int insertSelective(Evaluate record);

    List<Evaluate> selectByExample(EvaluateExample example);

    Evaluate selectByPrimaryKey(String curriculumTypeId);

    int updateByExampleSelective(@Param("record") Evaluate record, @Param("example") EvaluateExample example);

    int updateByExample(@Param("record") Evaluate record, @Param("example") EvaluateExample example);

    int updateByPrimaryKeySelective(Evaluate record);

    int updateByPrimaryKey(Evaluate record);

    List<Achievement> organizationStudent(@Param("organizationId")String organizationId,@Param("studentId")String studentId,@Param("studentName")String studentName);

    Evaluate getEvaluate(@Param("studentId")String studentId,@Param("curriculumExperimentId") String curriculumExperimentId);

    int delete(@Param("curriculumType") String curriculumType, @Param("studentId") String studentId);
}